import request from "@/utils/request";

// 查询客户业务进度列表
export function listBizCustomerBusiness(query) {
  return request({
    url: "/biz/bizCustomerBusiness/list",
    method: "get",
    params: query,
  });
}

// 查询客户业务进度详细
export function getBizCustomerBusiness(id) {
  return request({
    url: "/biz/bizCustomerBusiness/" + id,
    method: "get",
  });
}

// 新增客户业务进度
export function addBizCustomerBusiness(data) {
  return request({
    url: "/biz/bizCustomerBusiness",
    method: "post",
    data: data,
  });
}

// 修改客户业务进度
export function updateBizCustomerBusiness(data) {
  return request({
    url: "/biz/bizCustomerBusiness",
    method: "put",
    data: data,
  });
}

// 删除客户业务进度
export function delBizCustomerBusiness(id) {
  return request({
    url: "/biz/bizCustomerBusiness/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerBusiness/findMaxSort",
    method: "get",
  });
}
// 导出客户业务进度
export function exportBizCustomerBusiness(query) {
  return request({
    url: "/biz/bizCustomerBusiness/export",
    method: "get",
    params: query,
  });
}
